package com.hospital.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("medical_record")
public class MedicalRecord {
    @TableId(value = "mid", type = IdType.AUTO)
    private Integer mId;
    
    @TableField("rid")
    private Integer rId;
    
    @TableField("mtime")
    private LocalDateTime mTime;
    
    @TableField("mresult")
    private String mResult;
    
    @TableField("minfo")
    private String mInfo;
    
    @TableField("madvice")
    private String mAdvice;

    public MedicalRecord(Integer rId, String mResult, String mInfo, String mAdvice) {
        this.rId = rId;
        this.mResult = mResult;
        this.mInfo = mInfo;
        this.mAdvice = mAdvice;
    }
}
